import uiautomation
class IndexPage():
        his = uiautomation.WindowControl(searchDepth=1, Name='科玛奇医院信息管理系统')  # 锁定窗口
# 菜单列表元素定位
        lclj = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=1)   #临床路径
        jzkgl = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=2)  #就诊卡管理
        mzgh  = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=3)  #门诊挂号
        mzysz1 = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=4)  #门诊医生站
        jzysz = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=5)  #急诊医生站
        mzhsz = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=6)  #门诊护士站
        sfgl  = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=7)  #收费管理
        yfgl  = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=8)  #药房管理
        ykgl  = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=9)  #药库管理
        zygl  = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=10)  #住院管理
        zyysz = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=11)  #住院医生站
        zyhsz = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=12)  #住院护士站
        ssgl  = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=13)  #手术管理
        yjgl  = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=14)  #医技管理
        dzbl  = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=15)  #电子病历
        clgl  = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=16)  #材料管理
        cwbb  = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=17)  #财务报表
        zlpz  = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=18)  #诊疗配置
        xtpz  = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=19)  #系统配置
        ybjk  = his.ListControl(AutomationId='listBox', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=20)  #医保接口

        #就诊卡管理
        def click_jzkgl_btn(self):
                self.jzkgl.Click()
        #门诊挂号
        def click_mzgh_btn(self):
                self.mzgh.Click()
        #门诊医生站
        def click_mzysz1_btn(self):
                self.mzysz1.Click()
        #急诊医生站
        def click_jzysz_btn(self):
                self.jzysz.Click()
        #门诊护士站
        def click_mzhsz1_btn(self):
                self.mzhsz.Click()
        #收费管理
        def click_sfgl_btn(self):
                self.sfgl.Click()
        #药房管理
        def click_yfgl_btn(self):
                self.yfgl.Click()
        #药库管理
        def click_ykgl_btn(self):
                self.ykgl.Click()
        #住院管理
        def click_zygl_btn(self):
                self.zygl.Click()
        #住院医生站
        def click_zyysz1_btn(self):
                self.zyysz.Click()
        #住院护士站
        def click_zyhsz1_btn(self):
                self.zyhsz.Click()
        #手术管理
        def click_ssgl_btn(self):
                self.ssgl.Click()
        #医技管理
        def click_yjgl_btn(self):
                self.yjgl.Click()
        #电子病历
        def click_dzbl_btn(self):
                self.dzbl.Click()
        #材料管理
        def click_clgl_btn(self):
                self.clgl.Click()
        #财务报表
        def click_cwbb_btn(self):
                self.cwbb.Click()
        #诊疗配置
        def click_zlpz_btn(self):
                self.zlpz.Click()
        #系统配置
        def click_xtpz_btn(self):
                self.xtpz.Click()
        #医保接口
        def click_ybjk_btn(self):
                self.ybjk.Click()

#门诊挂号
        fwdj = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button',foundIndex=1)  # 服务登记
        fwdjcx= his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button',foundIndex=2)  #服务登记查询
        th = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button',foundIndex=3)  #退号
        # 点击服务登记
        def click_fwdj_btn(self):
                self.fwdj.Click()

        #点击服务登记查询
        def click_fwdjcx_btn(self):
                self.fwdjcx.Click()

        #点击服务登记查询
        def click_th_btn(self):
                self.th.Click()



#门诊医生站
        mztf = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=1)          #门诊退方
        mzcfmb = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=2)        #门诊处方模板
        grcfmb = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=3)        #个人处方模板
        mzblmb = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=4)        #门诊病历模板
        mzrzcx = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=5)        #门诊日志查询
        mzysz2 = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=6)        #门诊医生站
        ysgzl = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=7)         #医生工作量
        ygtgzz = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=8)        #医共体工作站

        # 点击门诊退方
        def click_mztf_btn(self):
                self.mztf.Click()

        # 点击门诊处方模板
        def click_mzcfmb_btn(self):
                self.mzcfmb.Click()

        # 点击个人处方模板
        def click_grcfmb_btn(self):
                self.grcfmb.Click()

        # 点击病历模板
        def click_mzblmb_btn(self):
                self.mzblmb.Click()

        # 点击门诊日志查询
        def click_mzrzcx_btn(self):
                self.mzrzcx.Click()

        # 点击门诊医生站
        def click_mzysz_btn(self):
                self.mzysz2.Click()

        # 点击医生工作量
        def click_ysgzl_btn(self):
                self.ysgzl.Click()

        # 点击医共体工作站
        def click_ygtgzz_btn(self):
                self.ygtgzz.Click()


#收费管理
        huajiashoufei = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=1)
        tuikuanchuli = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=2)
        shoufeichaxun =  his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=3)

        #点击划价收费
        def click_hjsf_btn(self):
                self.huajiashoufei.Click()
        #点击款处理
        def click_tkcl_btn(self):
                self.tuikuanchuli.Click()
        #点击收费查询
        def click_sfcx_btn(self):
                self.shoufeichaxun.Click()

#药房管理
        chufangfayao =  his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=1)
        chufangtuiyao = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=2)

        #点击门诊发药
        def click_cffy_btn(self):
                self.chufangfayao.Click()
        #点击处方退药
        def click_cfty_btn(self):
                self.chufangtuiyao.Click()


#门诊护士站
        tiaomadayin = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=1)
        menzhenhushizhan = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=2)

        #点击条码打印
        def click_tmdy_btn(self):
                self.tiaomadayin.Click()

        #点击门诊护士站
        def click_mzhsz2_btn(self):
                self.menzhenhushizhan.Click()

#医技管理
        yijizhixing =  his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=1)

        #点击医技执行
        def click_yjzx_btn(self):
                self.yijizhixing.Click()



#住院管理
        zhuyuandengji = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=1)
        zhuyuanyajinshouqu = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=3)
        chuyuanjiesuan = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=5)
        zuofeijiesuan = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=6)
        #点击住院登记
        def click_zydj_btn(self):
                self.zhuyuandengji.Click()
        #点击住院押金收取
        def click_zyyjsq_btn(self):
                self.zhuyuanyajinshouqu.Click()
        #点击出院结算
        def click_cyjs_btn(self):
                self.chuyuanjiesuan.Click()
        #点击作废结算
        def click_zfjs_btn(self):
                self.zuofeijiesuan.Click()

#住院医生站
        zhuyuanyishengzhan = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=1)
        #点击住院医生站
        def click_zyysz2_btn(self):
                self.zhuyuanyishengzhan.Click()

#住院护士站
        zhuyuanhushizhan = his.ListControl(AutomationId='MenuSub', ClassName='ListBox').ButtonControl(ClassName='Button', foundIndex=1)
        #点击住院护士站
        def click_zyhsz2_btn(self):
                self.zhuyuanhushizhan.Click()
